/*
 * @Descripttion: 
 * @version: 
 * @Author: 小六
 * @Date: 2020-07-06 11:13:34
 * @LastEditors: 小六
 * @LastEditTime: 2020-07-06 20:56:24
 */ 
const PRO_BASE_API = ''; // 正式服地址
const DEV_BASE_API = 'http://localhost:3000'; // 开发环境地址
export const token = window.sessionStorage.getItem('token') || ''

export function getBaseApi() {
    if (process.env.NODE_ENV === 'development') {
        return DEV_BASE_API
    } else {
        return PRO_BASE_API
    }
}
